package com.spa.application.command.member;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.*;
import java.util.Date;

@Data
public class MemberOrderAddCommand {

    @NotNull(message = "请选择服务项目")
    private Long serviceId;

    @NotNull(message = "请选择服数量")
    @Min(1)
    private Integer serviceQuantity;

    @NotNull(message = "请选择服务技师")
    private Long massagistId;

    private String travelType;

    @NotNull(message = "请选择服务地址")
    private Long addressId;

    @NotNull(message = "请选择上门时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date appointTime;

    private Long couponId;

    @Size(max = 128, message = "备注信息太长了，请您调整一下吧！")
    private String remark;

    private String priceType;

    private String openId;

    private String source;

    private boolean useCoupon;

}
